/*
 * Copyright (C), 2002-2016, 苏宁易购电子商务有限公司
 * FileName: EmployeeHireInfo.java
 * Author:   15050536
 * Date:     2016年12月6日 下午4:00:11
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.po.tm;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.suning.sawp.constants.TMConstants;

/**
 * 时光机-员工入职信息实体类
 *
 * @author 15050536 石键平
 */
@Entity(name = "bi_employee_hire_info")
public class EmployeeHireInfo implements Serializable{
	
	/**
	 */
	private static final long serialVersionUID = -5344722485657698351L;

	/**
	 * 自增主键
	 */
	private Long id;
	
	/**
	 * 工号
	 */
	private String employeeId;	
	
	/**
	 * 性别
	 */
	private String gender;
	
	/**
	 * 入职时间
	 */
	private String hireTime;
	
	/**
	 * 入职天数
	 */
	private int hireDay;
	
	/**
	 * 入职月份数
	 */
	private int hireMonth;
	
	/**
	 * 入职时间排名
	 */
	private int ranking;
	
	/**
	 * 总员工数 
	 */
	private int countAll;
	
	/**
	 * 处理时间 yyyy-MM-dd HH:mm:ss
	 */
	private String etlTime;
	
	/**
	 * 是否领取过优惠券
	 */
	private String hasGotCoupon;

	@Id
    @Column(name = "id")
	@GeneratedValue(strategy = GenerationType.TABLE)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "employee_id")
	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

	@Column(name = "gender")
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		if(TMConstants.FAMALE_NUM.equals(gender)){
			gender = TMConstants.FAMALE;
		}else{
			gender = TMConstants.MAN;
		}
		this.gender = gender;
	}

	@Column(name = "hire_time")
	public String getHireTime() {
		return hireTime;
	}

	public void setHireTime(String hireTime) {
		this.hireTime = hireTime;
	}

	@Column(name = "hire_day")
	public int getHireDay() {
		return hireDay;
	}

	public void setHireDay(int hireDay) {
		this.hireDay = hireDay;
	}

	@Column(name = "hire_month")
	public int getHireMonth() {
		return hireMonth;
	}

	public void setHireMonth(int hireMonth) {
		this.hireMonth = hireMonth;
	}

	@Column(name = "ranking")
	public int getRanking() {
		return ranking;
	}

	public void setRanking(int ranking) {
		this.ranking = ranking;
	}

	@Column(name = "count_all")
	public int getCountAll() {
		return countAll;
	}

	public void setCountAll(int countAll) {
		this.countAll = countAll;
	}

	@Column(name = "etl_time")
	public String getEtlTime() {
		return etlTime;
	}

	public void setEtlTime(String etlTime) {
		this.etlTime = etlTime;
	}
	
	public String getHasGotCoupon() {
		return hasGotCoupon;
	}

	public void setHasGotCoupon(String hasGotCoupon) {
		this.hasGotCoupon = hasGotCoupon;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.SHORT_PREFIX_STYLE);
	}
	
	
}
